const fs = require('fs');
const path = require('path');

const appDirectory = fs.realpathSync(process.cwd());
const rootFile = appDirectory;
module.exports = {
    urlPath:"/op",
    //常规配置
    useSourceMap:true,

    //路径配置
    appDirectory:rootFile,
    outputJs:"js/[name].[hash:8].js",
    outputHtml:"view/index.html",
    outputImage:"image/[name].[hash:8].[ext]",
    outputCss:"css/[name].[hash:8].css",
    outputOther:"image/[name].[hash:8].[ext]",

    indexHtml:path.resolve(rootFile, "public/index.html"),
    indexJs:path.resolve(rootFile, "src/index.js"),
    srcPath:path.resolve(rootFile, "src"),

    port:7000,
};